package com.mz361.admin.market.validator;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

/**
 * @author niceale
 * @date 2024/11/04
 */
@Data
public class CustomerValid implements Serializable {
    @NotEmpty(message = "客户名称不能为空")
    private String name;
    @Pattern(regexp = "^((17[0-9])|(14[0-9])|(13[0-9])|(15[^4,\\D])|(18[0,5-9]))\\d{8}$", message = "手机号码格式不正确")
    private String phone;
}